<?php
	if (!isset($_SESSION)) { session_start(); }
	$cod_pais = $_SESSION['PAIS'];
	include_once('../../includes/fk_php/Connections/connection.php');
	
	$store = $_POST['SP'];
	$con = "CALL ".$store."('$cod_pais')";
	$Resul	= $connection->query($con);
	$total = $Resul->field_count;
	$i=0;
	$response ='';
	while($Info	= $Resul->fetch_row()){
		$iden	=	$Info[0];
		$nom	=	utf8_encode($Info[1]);
		$response->data[$i]=array('Idmenu'=>$iden,'Nombremenu'=>$nom); $i++;
	}
	
	echo json_encode($response);
?>

